package com.reebake.ideal.message.websocket.entity;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WebsocketMessageDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    
    private String id = IdUtil.fastSimpleUUID();
    
    private WebsocketMessageTypeEnum type = WebsocketMessageTypeEnum.TIP;
    
    private String title;
    
	private String receiver;
	
    private String sender;
    
    private String content;
    
    private Date time = DateUtil.date();
    
}

